#!/bin/bash

count=`lsof -i TCP | wc -l`

echo Amount of TCP ports :: $count

if [ $count -gt 20 ]
then
 echo there is more than 20 TCP Ports running...
fi

if [ $count -lt 20 ]
then
 echo there is less than 20 TCP Ports running...
fi
